package io.renren.dao;

import io.renren.entity.UserReservation;
import io.renren.po.UserVehiclePO;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2018/11/26.
 */
public interface PoliceOnlineDao {

    List<UserVehiclePO> getVehicleList(@Param("userid") String userid);

    int saveReservationVehicle(UserVehiclePO userVehiclePO);

    List<Map> breakAppointment(@Param("userid") String userid);

    void updateBreakAppointment(@Param("list")ArrayList list);

    void updateUserIntegral(Map paramMap);

    Map queryUserIntegraInfo(@Param("userid")String userid);

    Integer getReservationNum(@Param("license_plate") String license_plate);

    List<Map> getCheckSiteList();

    List<Map> queryCheckSiteServiceProject(@Param("company_id") String company_id);

    List<Map> queryReservationTimeList(Map paramMap);

    void saveReservationTime(Map paramMap);

    Integer queryReservationTimeById(@Param("id") String id_);

    Integer queryUserReservationRecord(UserReservation userReservation);

    void updateReservationTime(UserReservation userReservation);

    List<Map> queryReservationRecord(@Param("license_plate") String license_plate,@Param("userid") String userid);

    Integer saveCancelReservationTime(UserReservation userReservation);

    Integer updateCancelReservationTime(UserReservation userReservation);

    Integer updateReservationArrive(UserReservation userReservation);

    Integer deleteUserVehicle(@Param("userid") String userid, @Param("license_plate") String license_plate);
}
